<?php

require_once 'Zend/View/Helper/Abstract.php';

class Core_View_Helper_Admin_RenderText extends Zend_View_Helper_Abstract
{
    /**
     *
     * @return string
     */
    public function renderText($key, $tag = null)
    {
        $xhtml = null;
        if ($tag != null) {
            $xhtml .= "<{$tag}>";
        }
        $xhtml .= $this->view->getTranslation($key);
        if ($tag != null) {
            $xhtml .= "</{$tag}>";
        }
        return $xhtml;

    }
}